PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Supernova / Radiate / Martin - QBikal - Surface Turbulence IIyyyy hakanh mash-up k (flexi well)5.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.015 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=0.300 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=506 |
| 77 | wavecode_0_sep=116 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.07408 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.700 |
| 88 | wave_0_per_point1= |
| 89 | wave_0_per_point2=n = int((reg00+.5)*sample); |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=m = 30001+n/(reg00/reg01); |
| 92 | wave_0_per_point5=gmegabuf(m) = (value1+value2); |
| 93 | wave_0_per_point6= |
| 94 | wave_0_per_point7=x = gmegabuf(10000+n); |
| 95 | wave_0_per_point8=y = gmegabuf(15000+n); |
| 96 | wave_0_per_point9=a = gmegabuf(20000+n); |
| 97 | wave_0_per_point10= |
| 98 | wave_0_per_point11=b = min(max(gmegabuf(25000+n),0),1); |
| 99 | wave_0_per_point12=r = 1-b; |
| 100 | wave_0_per_point13=g = 0.5; |
| 101 | wavecode_1_enabled=1 |
| 102 | wavecode_1_samples=506 |
| 103 | wavecode_1_sep=0 |
| 104 | wavecode_1_bSpectrum=0 |
| 105 | wavecode_1_bUseDots=0 |
| 106 | wavecode_1_bDrawThick=1 |
| 107 | wavecode_1_bAdditive=0 |
| 108 | wavecode_1_scaling=0.89152 |
| 109 | wavecode_1_smoothing=0.82000 |
| 110 | wavecode_1_r=1.000 |
| 111 | wavecode_1_g=1.000 |
| 112 | wavecode_1_b=1.000 |
| 113 | wavecode_1_a=1.000 |
| 114 | wave_1_per_point1=n = int((reg00+.5)*sample) +reg00; |
| 115 | wave_1_per_point2= |
| 116 | wave_1_per_point3=x = gmegabuf(10000+n); |
| 117 | wave_1_per_point4=y = gmegabuf(15000+n); |
| 118 | wave_1_per_point5=a = gmegabuf(20000+n); |
| 119 | wave_1_per_point6= |
| 120 | wave_1_per_point7=b = min(max(gmegabuf(25000+n),0),1); |
| 121 | wave_1_per_point8=r = 1-b; |
| 122 | wave_1_per_point9=g = 0.5; |
| 123 | wave_1_per_point10= |
| 124 | wavecode_2_enabled=1 |
| 125 | wavecode_2_samples=506 |
| 126 | wavecode_2_sep=0 |
| 127 | wavecode_2_bSpectrum=0 |
| 128 | wavecode_2_bUseDots=0 |
| 129 | wavecode_2_bDrawThick=1 |
| 130 | wavecode_2_bAdditive=0 |
| 131 | wavecode_2_scaling=0.89152 |
| 132 | wavecode_2_smoothing=0.82000 |
| 133 | wavecode_2_r=1.000 |
| 134 | wavecode_2_g=1.000 |
| 135 | wavecode_2_b=1.000 |
| 136 | wavecode_2_a=1.000 |
| 137 | wave_2_per_point1=n = int((reg00+.5)*sample)+2*reg00; |
| 138 | wave_2_per_point2= |
| 139 | wave_2_per_point3= |
| 140 | wave_2_per_point4=x = gmegabuf(10000+n); |
| 141 | wave_2_per_point5=y = gmegabuf(15000+n); |
| 142 | wave_2_per_point6=a = gmegabuf(20000+n); |
| 143 | wave_2_per_point7= |
| 144 | wave_2_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 145 | wave_2_per_point9=r = 1-b; |
| 146 | wave_2_per_point10=g = 0.5; |
| 147 | wave_2_per_point11= |
| 148 | wavecode_3_enabled=1 |
| 149 | wavecode_3_samples=506 |
| 150 | wavecode_3_sep=0 |
| 151 | wavecode_3_bSpectrum=1 |
| 152 | wavecode_3_bUseDots=0 |
| 153 | wavecode_3_bDrawThick=1 |
| 154 | wavecode_3_bAdditive=0 |
| 155 | wavecode_3_scaling=1.00000 |
| 156 | wavecode_3_smoothing=0.50000 |
| 157 | wavecode_3_r=1.000 |
| 158 | wavecode_3_g=1.000 |
| 159 | wavecode_3_b=1.000 |
| 160 | wavecode_3_a=1.000 |
| 161 | wave_3_per_point1=n = int((reg00-.5)*sample)+3*reg00; |
| 162 | wave_3_per_point2= |
| 163 | wave_3_per_point3= |
| 164 | wave_3_per_point4=x = gmegabuf(10000+n); |
| 165 | wave_3_per_point5=y = gmegabuf(15000+n); |
| 166 | wave_3_per_point6=a = gmegabuf(20000+n); |
| 167 | wave_3_per_point7= |
| 168 | wave_3_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 169 | wave_3_per_point9=r = 1-b; |
| 170 | wave_3_per_point10=g = 0.5; |
| 171 | shapecode_0_enabled=0 |
| 172 | shapecode_0_sides=4 |
| 173 | shapecode_0_additive=1 |
| 174 | shapecode_0_thickOutline=0 |
| 175 | shapecode_0_textured=1 |
| 176 | shapecode_0_num_inst=1 |
| 177 | shapecode_0_x=0.500 |
| 178 | shapecode_0_y=0.500 |
| 179 | shapecode_0_rad=2.37185 |
| 180 | shapecode_0_ang=0.00000 |
| 181 | shapecode_0_tex_ang=1.57080 |
| 182 | shapecode_0_tex_zoom=0.93101 |
| 183 | shapecode_0_r=0.000 |
| 184 | shapecode_0_g=1.000 |
| 185 | shapecode_0_b=1.000 |
| 186 | shapecode_0_a=0.400 |
| 187 | shapecode_0_r2=0.000 |
| 188 | shapecode_0_g2=1.000 |
| 189 | shapecode_0_b2=0.000 |
| 190 | shapecode_0_a2=0.000 |
| 191 | shapecode_0_border_r=1.000 |
| 192 | shapecode_0_border_g=1.000 |
| 193 | shapecode_0_border_b=0.000 |
| 194 | shapecode_0_border_a=0.000 |
| 195 | shapecode_1_enabled=0 |
| 196 | shapecode_1_sides=12 |
| 197 | shapecode_1_additive=1 |
| 198 | shapecode_1_thickOutline=0 |
| 199 | shapecode_1_textured=1 |
| 200 | shapecode_1_num_inst=1 |
| 201 | shapecode_1_x=0.300 |
| 202 | shapecode_1_y=0.800 |
| 203 | shapecode_1_rad=1.06345 |
| 204 | shapecode_1_ang=0.00000 |
| 205 | shapecode_1_tex_ang=1.63363 |
| 206 | shapecode_1_tex_zoom=0.46617 |
| 207 | shapecode_1_r=1.000 |
| 208 | shapecode_1_g=1.000 |
| 209 | shapecode_1_b=0.000 |
| 210 | shapecode_1_a=1.000 |
| 211 | shapecode_1_r2=0.000 |
| 212 | shapecode_1_g2=0.000 |
| 213 | shapecode_1_b2=0.000 |
| 214 | shapecode_1_a2=1.000 |
| 215 | shapecode_1_border_r=1.000 |
| 216 | shapecode_1_border_g=0.000 |
| 217 | shapecode_1_border_b=0.000 |
| 218 | shapecode_1_border_a=0.000 |
| 219 | shapecode_2_enabled=0 |
| 220 | shapecode_2_sides=13 |
| 221 | shapecode_2_additive=1 |
| 222 | shapecode_2_thickOutline=0 |
| 223 | shapecode_2_textured=0 |
| 224 | shapecode_2_num_inst=5 |
| 225 | shapecode_2_x=0.650 |
| 226 | shapecode_2_y=0.380 |
| 227 | shapecode_2_rad=0.57049 |
| 228 | shapecode_2_ang=0.00000 |
| 229 | shapecode_2_tex_ang=0.00000 |
| 230 | shapecode_2_tex_zoom=0.73678 |
| 231 | shapecode_2_r=1.000 |
| 232 | shapecode_2_g=0.000 |
| 233 | shapecode_2_b=0.000 |
| 234 | shapecode_2_a=0.700 |
| 235 | shapecode_2_r2=0.000 |
| 236 | shapecode_2_g2=0.000 |
| 237 | shapecode_2_b2=0.000 |
| 238 | shapecode_2_a2=0.000 |
| 239 | shapecode_2_border_r=0.500 |
| 240 | shapecode_2_border_g=0.500 |
| 241 | shapecode_2_border_b=0.000 |
| 242 | shapecode_2_border_a=0.000 |
| 243 | shapecode_3_enabled=0 |
| 244 | shapecode_3_sides=14 |
| 245 | shapecode_3_additive=1 |
| 246 | shapecode_3_thickOutline=1 |
| 247 | shapecode_3_textured=1 |
| 248 | shapecode_3_num_inst=1 |
| 249 | shapecode_3_x=0.600 |
| 250 | shapecode_3_y=0.550 |
| 251 | shapecode_3_rad=0.97237 |
| 252 | shapecode_3_ang=1.25664 |
| 253 | shapecode_3_tex_ang=0.00000 |
| 254 | shapecode_3_tex_zoom=0.34933 |
| 255 | shapecode_3_r=1.000 |
| 256 | shapecode_3_g=0.600 |
| 257 | shapecode_3_b=0.000 |
| 258 | shapecode_3_a=1.000 |
| 259 | shapecode_3_r2=0.000 |
| 260 | shapecode_3_g2=0.000 |
| 261 | shapecode_3_b2=1.000 |
| 262 | shapecode_3_a2=0.000 |
| 263 | shapecode_3_border_r=0.200 |
| 264 | shapecode_3_border_g=0.700 |
| 265 | shapecode_3_border_b=0.500 |
| 266 | shapecode_3_border_a=0.000 |
| 267 | per_frame_init_1=index = 0; |
| 268 | per_frame_init_2=loop (70000, |
| 269 | per_frame_init_3= megabuf(index) = 0; |
| 270 | per_frame_init_4= gmegabuf(index) = 0; |
| 271 | per_frame_init_5= index = index + 1; |
| 272 | per_frame_init_6=); |
| 273 | per_frame_init_7= |
| 274 | per_frame_init_8=zang = 1; |
| 275 | per_frame_init_9= |
| 276 | per_frame_init_10=yang = 0; |
| 277 | per_frame_init_11=zang = 2; |
| 278 | per_frame_1=xlen = 45; ylen = 45; flen = 20; reg00 = xlen*ylen/4; reg01=reg00/4; |
| 279 | per_frame_2=dec_med = 1-0.06*30/fps; dec_slow = 1-0.02*30/fps; dec_f = pow (0.8, 30/fps); |
| 280 | per_frame_3=q30 = dec_slow; |
| 281 | per_frame_4=smooth = max(1,pow(6,fps/30)-2); // >= 0; Ausbreitungsgeschwindigkeit |
| 282 | per_frame_5= |
| 283 | per_frame_6=//"Classic" beat reaction |
| 284 | per_frame_7=cbeat = bass+mid+treb; |
| 285 | per_frame_8=decc = if (vol>cbeat,0.8,dec_med); |
| 286 | per_frame_9=vol = vol * decc + (1-decc)*cbeat; |
| 287 | per_frame_10=avg = avg*dec_slow + cbeat*(1-dec_slow); |
| 288 | per_frame_11=is_beat = above(cbeat, 1.5*avg) * above (time, tc0+.2); |
| 289 | per_frame_12=tc0 = if (bor(is_beat, bd_bt),time,tc0); |
| 290 | per_frame_13=peak = if (is_beat,cbeat,peak*dec_med); |
| 291 | per_frame_14= |
| 292 | per_frame_15= |
| 293 | per_frame_16=//Gleichanteil entfernen und normalisieren |
| 294 | per_frame_17=ind = 0; sum = 0; amp = 0.01; |
| 295 | per_frame_18=loop (reg01, |
| 296 | per_frame_19= sum = sum + gmegabuf(ind+30000)/(reg01); |
| 297 | per_frame_20= amp = amp + pow(gmegabuf(ind+30000),2); |
| 298 | per_frame_21= ind = ind+1; |
| 299 | per_frame_22=); |
| 300 | per_frame_23=ind = 0; amp_= amp_*dec_med + (1-dec_med)*sqrt(amp)/reg01*600; |
| 301 | per_frame_24=loop (reg01, |
| 302 | per_frame_25= megabuf(ind+30000)= (gmegabuf(ind+30000)-sum)/amp_; |
| 303 | per_frame_26= ind = ind+1; |
| 304 | per_frame_27=); |
| 305 | per_frame_28= |
| 306 | per_frame_29=// Spectrum of spectrum ! |
| 307 | per_frame_30=index2 = 0; |
| 308 | per_frame_31=loop(flen, //Frequency step |
| 309 | per_frame_32= index=0; real= 0; imag = 0; |
| 310 | per_frame_33= loop (flen, |
| 311 | per_frame_34= real = real + cos(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 312 | per_frame_35= imag = imag + sin(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 313 | per_frame_36= index=index+1; |
| 314 | per_frame_37= ); |
| 315 | per_frame_38= megabuf(10000+index2)= megabuf(10000+index2) * dec_f + real; |
| 316 | per_frame_39= megabuf(15000+index2)= megabuf(15000+index2) * dec_f + imag; |
| 317 | per_frame_40= index2 = index2+1; |
| 318 | per_frame_41= ); |
| 319 | per_frame_42= |
| 320 | per_frame_43=//Anregung |
| 321 | per_frame_44=ind = 1; |
| 322 | per_frame_45=loop (flen/2, |
| 323 | per_frame_46= cx = megabuf(10000+ind); |
| 324 | per_frame_47= cy = megabuf(15000+ind); |
| 325 | per_frame_48= yind = -1; |
| 326 | per_frame_49= loop (3, |
| 327 | per_frame_50= xind = -1; |
| 328 | per_frame_51= loop (3, |
| 329 | per_frame_52= ox = ((cx+.5)*xlen+xind)%xlen; |
| 330 | per_frame_53= oy = ((cy+.5)*ylen+yind)%ylen; |
| 331 | per_frame_54= amp = (cx*cx+cy*cy)*3; |
| 332 | per_frame_55= megabuf (oy*ylen+ox) = megabuf (oy*ylen+ox) |
| 333 | per_frame_56= - 2*30/fps*sqrt(amp)*above(amp,.02)/(1+xind*xind+yind*yind); |
| 334 | per_frame_57= xind = xind+1; |
| 335 | per_frame_58= ); |
| 336 | per_frame_59= yind = yind+1; |
| 337 | per_frame_60= ); |
| 338 | per_frame_61= ind = ind+1; |
| 339 | per_frame_62=); |
| 340 | per_frame_63= |
| 341 | per_frame_64=//Simulation |
| 342 | per_frame_65=yind = 0; |
| 343 | per_frame_66=loop (ylen, |
| 344 | per_frame_67= xind = 0; |
| 345 | per_frame_68= loop (xlen, |
| 346 | per_frame_69= megabuf(yind*ylen+xind+5000) = //megabuf ab 5000 ist nur Zwischenspeicher |
| 347 | per_frame_70= dec_med*((gmegabuf(yind*ylen+(xind+1)%xlen) + |
| 348 | per_frame_71= gmegabuf(yind*ylen+(xlen+xind-1)%xlen) + |
| 349 | per_frame_72= gmegabuf(((yind+1)%ylen)*ylen+xind) + |
| 350 | per_frame_73= gmegabuf(((yind+ylen-1)%ylen)*ylen+xind) |
| 351 | per_frame_74= +gmegabuf(yind*ylen+xind)*smooth*4)/(2+2*smooth) - megabuf(yind*ylen+xind)); |
| 352 | per_frame_75= xind = xind+1; |
| 353 | per_frame_76= ); |
| 354 | per_frame_77= yind = yind+1; |
| 355 | per_frame_78=); |
| 356 | per_frame_79= |
| 357 | per_frame_80=//Projektionsparameter |
| 358 | per_frame_81= |
| 359 | per_frame_82=bindex += is_beat; |
| 360 | per_frame_83= |
| 361 | per_frame_84=if (is_beat && (bindex%4==0), ran2 = (rand(100)-50)/50,0 ); |
| 362 | per_frame_85=if (is_beat && (bindex%4==2), ran3 = (rand(100)-50)/50,0 ); |
| 363 | per_frame_86=if (is_beat && (bindex%6==5), ran4 = (rand(100)-50)/50,0 ); |
| 364 | per_frame_87= |
| 365 | per_frame_88=trelx += ran2/fps/18; |
| 366 | per_frame_89=trely += ran3/fps/2; |
| 367 | per_frame_90=trelz += ran4/fps/6; |
| 368 | per_frame_91=zang = 6*sin(trelz); |
| 369 | per_frame_92=xang = 6*sin(zang/5+trelx); |
| 370 | per_frame_93=yang = 6*sin(zang/3*0+trely); |
| 371 | per_frame_94= |
| 372 | per_frame_95=q1 = cos(xang);q2 = sin(xang);q3 = cos(yang); |
| 373 | per_frame_96=q4 = sin(yang);q5 = cos(zang);q6 = sin(zang); |
| 374 | per_frame_97=fov = 1; |
| 375 | per_frame_98= |
| 376 | per_frame_99=//Umkopieren und Projektion |
| 377 | per_frame_100=yind = 0; |
| 378 | per_frame_101=loop (ylen, |
| 379 | per_frame_102= xind = 0; |
| 380 | per_frame_103= loop (xlen, |
| 381 | per_frame_104= ind = yind*ylen+xind; |
| 382 | per_frame_105= megabuf(ind) = gmegabuf(ind); |
| 383 | per_frame_106= gmegabuf(ind) = megabuf(ind+5000); |
| 384 | per_frame_107= oz = yind - ylen/2; //# |
| 385 | per_frame_108= ox = if(bnot(yind%2),xind,xlen-xind-1); |
| 386 | per_frame_109= oy0a = (oy0+oy0a)/2.5; |
| 387 | per_frame_110= oy = gmegabuf(yind*ylen+ox); oy0 = oy; |
| 388 | per_frame_111= ox = ox - xlen/2; |
| 389 | per_frame_112= mx = ox*q5 - oy*q6; my = ox*q6 + oy*q5; |
| 390 | per_frame_113= ox = mx; oy = my; |
| 391 | per_frame_114= mx = ox*q3 + oz*q4; mz = - ox*q4 + oz*q3; |
| 392 | per_frame_115= ox = mx; oz = mz; |
| 393 | per_frame_116= my = oy*q1 - oz*q2; mz = oy*q2 + oz*q1; |
| 394 | per_frame_117= z0 = (10*sin(trelz*14)); |
| 395 | per_frame_118= oy = my; oz = mz+z0; |
| 396 | per_frame_119= gmegabuf(10000+ind) = fov*ox/(oz+60*fov)+.5; |
| 397 | per_frame_120= gmegabuf(15000+ind) = fov*oy/(oz+60*fov)+.5; |
| 398 | per_frame_121= hell= max(min(.5+oy0/4,1),0.2); //Helligkeit |
| 399 | per_frame_122= gmegabuf(20000+ind) = max(min(hell* (.5+ (oy0a-oy0)*0.1),1),0.1); |
| 400 | per_frame_123= gmegabuf(25000+ind) = oy0/16+.5;; |
| 401 | per_frame_124= xind = xind+1; |
| 402 | per_frame_125= ); |
| 403 | per_frame_126= yind = yind+1; |
| 404 | per_frame_127=); |
| 405 | per_frame_128= |
| 406 | per_frame_129=q29 = 10/(z0+15); |
| 407 | per_frame_130=q32 = aspecty; |
| 408 | per_frame_131=q28 = min (vol/3-0.25,1); |
| 409 | per_frame_132=monitor = q28; |
| 410 | per_pixel_1=rot = 0; zoom = 1.1; warp = 0; dy = 0.02; |
| 411 | warp_1=`shader_body |
| 412 | warp_2=`{ |
| 413 | warp_3=` float1 d = 0.005; |
| 414 | warp_4=` float1 dx = ( GetBlur2(uv + float2(d,0)) - GetBlur2(uv-float2(d,0)) ).y; |
| 415 | warp_5=` float1 dy = ( GetBlur2(uv + float2(0,d)) - GetBlur2(uv-float2(0,d)) ).y; |
| 416 | warp_6=` float2 my_uv = uv - float2(dx,dy)*0.01; |
| 417 | warp_7=` |
| 418 | warp_8=` |
| 419 | warp_9=` |
| 420 | warp_10=` float2 v = 0.01; |
| 421 | warp_11=` ret.y = tex2D( sampler_fc_main, my_uv-floor(my_uv)).y; |
| 422 | warp_12=` |
| 423 | warp_13=` |
| 424 | warp_14=` ret.y += (ret.y - GetBlur3(my_uv-floor(my_uv)).y)*.1; |
| 425 | warp_15=` ret.y += 0.006-GetBlur3(uv-floor(uv)).x*5; |
| 426 | warp_16=` |
| 427 | warp_17=` ret.y = lerp( ret.y, lum(ret).x, 0); |
| 428 | warp_18=` |
| 429 | warp_19=`//-------------------------------- |
| 430 | warp_20=` |
| 431 | warp_21=` d = 0.01; |
| 432 | warp_22=` my_uv = float2(-dy,dx)*0.05; |
| 433 | warp_23=` |
| 434 | warp_24=` dx = ( GetBlur2(uv + float2(d,0)) - GetBlur2(uv-float2(d,0)) ).z; |
| 435 | warp_25=` dy = ( GetBlur2(uv + float2(0,d)) - GetBlur2(uv-float2(0,d)) ).z; |
| 436 | warp_26=` my_uv += uv - float2(dx,dy)*0.005; |
| 437 | warp_27=` |
| 438 | warp_28=` |
| 439 | warp_29=` |
| 440 | warp_30=` v = 0.01; |
| 441 | warp_31=` ret.z =tex2D( sampler_fw_main, my_uv - floor(my_uv)).z; |
| 442 | warp_32=` |
| 443 | warp_33=` |
| 444 | warp_34=` ret.z += (ret.z - GetBlur3(my_uv-floor(my_uv)).z)*0.13; |
| 445 | warp_35=` ret.z *= 0.95; |
| 446 | warp_36=` ret.z += 0.03-GetBlur3(uv-floor(uv)).x - tex2D( sampler_main, my_uv - floor(my_uv)).y*0.05; |
| 447 | warp_37=` |
| 448 | warp_38=` ret.x = tex2D( sampler_main, uv_orig).x - 0.3; |
| 449 | warp_39=`} |
| 450 | comp_1=`#define sat saturate |
| 451 | comp_2=`static const float2 pix = texsize.zw; |
| 452 | comp_3=`float glow, tmp, lamp, dist, bdist, b2dist, dist_c; |
| 453 | comp_4=`float2 dz, uv1, uv3; |
| 454 | comp_5=`static const float3 CamPos = float3(q4,q5,q6); |
| 455 | comp_6=`static const float myzoom = q7; |
| 456 | comp_7=`static const float3x3 RotMat = float3x3(q20,q21,q22,q23,q24,q25,q26,q27,q28); |
| 457 | comp_8=`static const float3 col_struc = float3(1,.7,.3) + .2*(rand_preset.xyz-.5); |
| 458 | comp_9=`static float2 center = float2 (q1,q2); |
| 459 | comp_10=` |
| 460 | comp_11=`float3 GetBlurX (float2 uvi, float x) {return lerp (GetPixel(uvi), GetBlur1(uvi), x);} |
| 461 | comp_12=`float GetDist(float2 uvi) {return 1-GetPixel(uvi).b;} |
| 462 | comp_13=`float GetDistB(float2 uvi) {return 1-GetBlur1(uvi).b;} |
| 463 | comp_14=`float GetDistB2(float2 uvi) {return 1-GetBlur2(uvi).b;} |
| 464 | comp_15=` |
| 465 | comp_16=`float MinDistB (float2 uvi) {float tmp; float4 nb; //##nicht ideal |
| 466 | comp_17=` tmp = GetDist(uvi); |
| 467 | comp_18=` tmp = min(tmp,GetDistB2(uvi)*1) ; |
| 468 | comp_19=` return tmp;} |
| 469 | comp_20=` |
| 470 | comp_21=`sampler sampler_pw_noise_lq; |
| 471 | comp_22=` |
| 472 | comp_23=`float3 neu, ret1; |
| 473 | comp_24=`float2 rs2,rs0,rss,uv2; |
| 474 | comp_25=`float ang2,c,s; |
| 475 | comp_26=`float2x2 rota = float2x2(.7,.7,-.7,.7); |
| 476 | comp_27=`shader_body |
| 477 | comp_28=`{ |
| 478 | comp_29=`float2 uvo = 0.5 + (uv-0.5)*float2(1.1,0.81); |
| 479 | comp_30=`float2 factorA = uv-float2(1-0.5,0.5); |
| 480 | comp_31=` |
| 481 | comp_32=`uv -= 0.5; |
| 482 | comp_33=`uv *= aspect.xy; |
| 483 | comp_34=` |
| 484 | comp_35=`rs0.x = atan2(uv.y, uv.x)/3.1416*2; |
| 485 | comp_36=`rs0.y = .02/(length (uv)); |
| 486 | comp_37=`rss = float2 (rs0.x,rs0.y+time); |
| 487 | comp_38=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 488 | comp_39=`float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.7 >= 0); |
| 489 | comp_40=`rss = abs(frac(rss*8)-.5); |
| 490 | comp_41=`float3 dots = saturate(.04/length(rss)) *noise; |
| 491 | comp_42=` |
| 492 | comp_43=`rss = float2 (rs0.x*2,rs0.y+time/2); |
| 493 | comp_44=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 494 | comp_45=`noise = (tex2D(sampler_pw_noise_lq,rss/32)-.7 >= 0); |
| 495 | comp_46=`rss = abs(frac(rss*8)-.5); |
| 496 | comp_47=`dots += saturate(.04/length(rss)) * noise; |
| 497 | comp_48=` |
| 498 | comp_49=`dots *= saturate(.04/abs(.01/rs0.y-q6*0))+.0; |
| 499 | comp_50=`dots *= dots*2; |
| 500 | comp_51=` |
| 501 | comp_52=`float3 ret1 = 0; |
| 502 | comp_53=`int anz = 2; |
| 503 | comp_54=`int n = 0; |
| 504 | comp_55=`while (n <= anz) { |
| 505 | comp_56=` ang2 = 6.28*n/anz; |
| 506 | comp_57=` c = cos(ang2); |
| 507 | comp_58=` s = sin(ang2); |
| 508 | comp_59=` uv2.x = uv.x*c - uv.y*s; |
| 509 | comp_60=` uv2.y = uv.x*s + uv.y*c; |
| 510 | comp_61=` |
| 511 | comp_62=` neu = GetPixel(uv2+.5) + GetBlur1(uv2+.5); |
| 512 | comp_63=` ret1 = max(ret1,neu); |
| 513 | comp_64=`n++; |
| 514 | comp_65=`} |
| 515 | comp_66=`ret = ret1 + dots*(1+ret1); |
| 516 | comp_67=` |
| 517 | comp_68=`float2 factorB = float2(0,-1024+(treb_att-bass_att)*0); |
| 518 | comp_69=`float2 product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 519 | comp_70=`float2 numerator = float2(1,0); |
| 520 | comp_71=`float2 denominator = product; |
| 521 | comp_72=`float2 fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, // the fractions real part |
| 522 | comp_73=` numerator.y*denominator.x - numerator.x*denominator.y)/ // the fractions imaginary part |
| 523 | comp_74=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 524 | comp_75=`uv = fraction.yx*float2(-1,1)*100; |
| 525 | comp_76=`uv = lerp(0.5 + (uvo-0.5)*2,uv+0.5,0.5); |
| 526 | comp_77=`uv = 0.5 + (1.0 - abs( frac( uv * 0.5 ) * 2 - 1.0 )-0.5)*0.98; // Eo.S. mirror code with cutted borders |
| 527 | comp_78=`uv = (uv-.5)*.9 + .5; |
| 528 | comp_79=` |
| 529 | comp_80=`uv1 = (uv-center)*aspect.xy; |
| 530 | comp_81=` |
| 531 | comp_82=`dist = MinDistB(uv); |
| 532 | comp_83=`bdist = lerp(dist,GetDistB(uv),.2); |
| 533 | comp_84=`dist_c = clamp(GetDistB2 (center),.1,.4); //center distance |
| 534 | comp_85=` |
| 535 | comp_86=`float3 uv2 = mul(float3((uv-.5)*MinDistB(uv),MinDistB(uv))/myzoom,RotMat)+CamPos; |
| 536 | comp_87=`glow = pow (sat(tex2D (sampler_noise_hq,.02*uv2).r-.6)*2,2); |
| 537 | comp_88=`//uv += .003*glow*(tex2D (sampler_noise_mq,uv*2+float2(0,time/4).xy-.5)); |
| 538 | comp_89=` |
| 539 | comp_90=`float focus = sat(abs(GetDistB2(uv)-dist_c)*1+.2); |
| 540 | comp_91=`float struc = GetBlurX(uv,focus).r; |
| 541 | comp_92=` |
| 542 | comp_93=`glow = sat(1-exp(-(GetBlur1(uv).r))-.2); |
| 543 | comp_94=`q18 = 1; |
| 544 | comp_95=`ret = pow(struc,1) * (.2+(1-focus) *lerp(dist,1-dist,q18)) * (1+.5*sin(uv2)); |
| 545 | comp_96=`ret = lerp(ret, float3(0,1,glow*3), glow); |
| 546 | comp_97=` |
| 547 | comp_98=`//distant light |
| 548 | comp_99=`//ret += pow(1-GetBlurX(uv,.8).b,3)*(.5+.5*slow_roam_cos) *q19; |
| 549 | comp_100=` |
| 550 | comp_101=`//Lamp |
| 551 | comp_102=`uv3 = uv1; |
| 552 | comp_103=`lamp = saturate(1-4*length(uv3))*(struc)*saturate(1-2*bdist)*1.8; |
| 553 | comp_104=`ret += (1-lum(ret))*lamp; |
| 554 | comp_105=`ret = 1-exp((-2)*ret); |
| 555 | comp_106=`//ret = GetPixel(uv).r; |
| 556 | comp_107=` |
| 557 | comp_108=`// laser |
| 558 | comp_109=` |
| 559 | comp_110=`ret = ret + dots*(1+ret); |
| 560 | comp_111=`} |
| 561 | comp_112=` |
| 562 | comp_113=`//------------------------------------------- |
| 563 | comp_114=`//Written by martin |
| 564 | comp_115=` |